package com.zretc.service;

import java.util.List;

import com.zretc.dao.NewsDao;
import com.zretc.dao.NewsDaoImpl;
import com.zretc.entity.News;

public class NewsServiceImpl implements NewsService {
	// 这里有个属性,这里我们会调用newsDao实现数据库访问
	// 目前没有数据库，模拟的是List中假数据
	private NewsDao newsdao;

	/**
	 * @return the newsdao
	 */
	public NewsDao getNewsdao() {
		return newsdao;
	}

	/**
	 * @param newsdao the newsdao to set
	 */
	public void setNewsdao(NewsDao newsdao) {
		this.newsdao = newsdao;
	}

	
	@Override
	public List<News> getNews() {
		// TODO Auto-generated method stub
		return newsdao.getNews();
	}


}
